﻿using Chambills.Present.Core;
using Chambills.Present.Core.NotifyOnChange;

namespace Present.Commands.Sample.AsyncDemo
{
    public class ItemViewModel : NotifiableObject
    {
        private bool isDeleting;

        public ItemViewModel(string name)
        {
            Name = name;
        }


        private string name;

        public string Name
        {
            get { return name; }
            set
            {
                name = value;
                OnPropertyChanged(() => this.Name);
            }
        }

        public bool IsDeleting
        {
            get { return isDeleting; }
            set
            {
                isDeleting = value;
                OnPropertyChanged(() => IsDeleting);
            }
        }

        private string state;

        public string State
        {
            get { return state; }
            set
            {
                state = value;
                OnPropertyChanged(() => this.State);
            }
        }

    }
}